import { ref } from "vue";
import type { AvueFormOption } from "@smallwei/avue";

export default function () {
  const option: AvueFormOption = {
    menuBtn: false,
    labelWidth: 110,
    column: [
      {
        prop: "paramsName",
        label: "参数名称",
        span: 24,
        rules: [
          {
            required: true,
            message: "请输入参数名称",
          },
        ],
      },
      {
        prop: "paramsCode",
        label: "参数编号",
        span: 24,
        rules: [
          {
            required: true,
            message: "请输入参数编号",
          },
        ],
      },
      {
        prop: "paramsValue",
        label: "参数值",
        span: 24,
        rules: [
          {
            required: true,
            message: "请输入参数值",
          },
        ],
      },
      {
        type: "textarea",
        prop: "remark",
        label: "备注",
        span: 24,
        minRows: 3,
        maxlength: 200,
        showWordLimit: true,
      },
    ],
  };
  return ref(option);
}
